package com.yuexin.project.mobile.token;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * token实体类
 * 
 * @author yuexin
 * @date 2018-10-10
 */
public class TokenEntity {

	/** token ID */
	private Long tokenId;
	
	/** 用户名 */
	private String userName;
	
	/** 密码 */
	private String password; 
	
	/** 有效期 */
	private Long expiry;
	
	/** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

	public Long getTokenId() {
		return tokenId;
	}

	public void setTokenId(Long tokenId) {
		this.tokenId = tokenId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Long getExpiry() {
		return expiry;
	}

	public void setExpiry(Long expiry) {
		this.expiry = expiry;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
}
